package cn.nawang.ebeim.api.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import cn.nawang.ebeim.api.domain.StorageStrategy;

/**
 * @ClassName: StorageStrategyRepository
 * @Description: TODO
 * @author fanyb
 * @date Aug 18, 2015 9:45:18 AM
 * @version v1.0
 */
@Repository
public interface StorageStrategyRepository extends JpaRepository<StorageStrategy, String>{
  
  @Query("select ss from StorageStrategy ss where customerId=?1")
  public StorageStrategy findByCustomerId(String customerId);
}
